package com.smart.wap.bodys;

import com.smart.common.entities.core.BaseSearch;
import com.smart.manager.member.entities.views.MemberView;
import com.smart.manager.product.entities.views.BasicPigstyView;
import com.smart.manager.product.entities.views.BasicRfidView;
import com.smart.manager.product.entities.views.PigBreedView;
import com.smart.manager.product.entities.views.PigLevelView;
import com.smart.manager.work.views.BasicStaffView;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 售卖信息
 * @author Administrator
 */

@Data
public class SaleBody {


    /**
     * 投喂表单
     * @author leo
     * @date 2023/10/05
     */
    @Data
    @Accessors(chain = true)
    public static class EditBody implements Serializable {

        @ApiModelProperty(value = "猪仔代码", required = true)
        @NotBlank(message = "猪仔编号 不能为空")
        private String pigCode;

        @ApiModelProperty("设置价格")
        private BigDecimal price;

        @ApiModelProperty("备注")
        private String remark;

    }



    @Data
    @Accessors(chain = true)
    public static class PurchaseBody implements Serializable {

        @ApiModelProperty(value = "售卖id", required = true)
        @NotBlank(message = "售卖id 不能为空")
        private Long saleId;

    }


    @EqualsAndHashCode(callSuper = true)
    @Accessors(chain = true)
    @Data
    public static class SearchBody extends BaseSearch {

        private Boolean is;

    }
}
